<template>
  <el-container id="app">
    <el-row class="row-bg bigBox" ref="oneBox">
      <!-- 主导航模块 -->
      <div class="xtx-main-nav container">
        <!-- 左侧的logo -->
        <h1 class="logo fl">
          <a href="#">大笨钟</a>
        </h1>

        <!-- 中间的导航 -->
        <nav class="fl">
          <el-menu class="el-menu-demo" mode="horizontal" :router="true">
            <el-menu-item index="/"> 首页 </el-menu-item>
            <el-menu-item index="/aboutUs"> 房产经纪 </el-menu-item>
            <el-menu-item index="/classification"> 地产分类 </el-menu-item>
            <el-menu-item index="/houseAgent"> 关于我们 </el-menu-item>
          </el-menu>
        </nav>

        <!-- 右侧的搜索 -->
        <el-col :span="5" class="search1">
          <el-input v-model="input" placeholder="请输入想搜索的数据" clearable>
            <el-button slot="append" icon="el-icon-search" @click="getName">
            </el-button>
          </el-input>
        </el-col>
      </div>
    </el-row>
    <router-view/>
    <el-footer class="footer">
      <!-- 宣传服务 -->
      <section class="xtx-service">
        <div>
          <!-- <a href="#">价格亲民</a>
        <a href="#">物流快捷</a>
        <a href="#">品质新鲜</a> -->
          <el-row type="flex" class="row-bg row11" justify="space-around">
            <el-col :span="6" type="flex" justify="start" class="tac">
              <div>大笨钟邮局</div>
            </el-col>
            <el-col :span="6" class="tcc">
              <h4 >旅行服务</h4>
              旅游攻略 酒店预订<br />
              旅游特价 国际租车<br />
              旅游问答 旅游保险<br />
              旅游指南 订火车票<br />
              旅游资讯 APP下裁<br />
            </el-col>
            <el-col :span="6" class="bg1">
              <img src="@/assets/attention.png" alt="" />
              <div>关注我们</div>
            </el-col>
          </el-row>
        </div>
      </section>

      <!-- 版权信息 -->
      <section class="xtx-copyright">
        <p>
          <a href="#">关于我们</a> | <a href="#">帮助中心</a> |
          <a href="#">售后服务</a> | <a href="#">配送与验收</a> |
          <a href="#">商务合作</a> | <a href="#">搜索推荐</a> |
          <a href="#">友情链接</a>
        </p>
        <p>CopyRight @ 大笨钟邮局</p>
      </section>
    </el-footer>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: "1",
      input: "",
    };
  },
};
</script>

<style lang="scss" >


.bigBox {
  background-color: #fff;
}
.tcc {
  margin-top: 15px;
  text-align: center;
}
.container {
  width: 1240px;
  margin: 15px auto;
}
.search1 {
  margin: 13px 0 0 10px;
}
.bg2 {
  padding-top: 5px;
  img {
    width: 60px;
  }
}
.tac {
  text-align: start;
  line-height: 150px;
  font-size: 50px;
  font-weight: 500;
  text-shadow: 3px 3px 3px black;
  font-family: "汉仪尚巍手书W";
}


.bg1 {
  margin-top: 10px;
  text-align: center;
  img {
    width: 120px;
  }
}
.row11 {
  margin: 0px 300px 0 300px;
  span {
    color: #ba8529;
  }
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.footer {
  // background-color: #333;
  color: #fff;
}

/* ---------------------------xtx-service的样式 */
.xtx-service {
  height: 172px;
  background-color: #333;
}

.xtx-service .container {
  height: 171px;
  border-bottom: 1px solid #434343;
}
.xtx-service .container a::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 58px;
  height: 58px;
  margin-right: 19px;
  /* ps */
  /* background-color: red; */
  // background: url('../images/sprites.png') 0 0;
}

.xtx-service a:nth-child(2):before {
  background-position: -131px 0;
}

.xtx-service a:nth-child(3):before {
  background-position: -65px 0;
}

/* -----------------------------xtx-copyright的样式 */
.xtx-copyright {
  height: 169px;
  padding-top: 41px;
  /* 自动内减 */
  box-sizing: border-box;
  background-color: #333;
  text-align: center;
  color: #999999;
  font-size: 14px;
  line-height: 1;
}

.xtx-copyright p:nth-child(1) {
  height: 35px;
}

.xtx-copyright p:nth-child(1) a {
  color: #999999;
}
/* ------------------------xtx-main-nav的样式 */
.xtx-main-nav {
  height: 100px;
  padding-top: 15px;
  // width: 100%;
  /* ps */
  /* background-color: pink; */
}

.xtx-main-nav .logo {
  width: 207px;
  height: 70px;
  margin-right: 40px;
  /* ps */
  /* background-color: skyblue; */
}

.xtx-main-nav .logo a {
  display: block;
  height: 70px;
  width: 100px;
  /* ps */
  /* background-color: purple; */
  background: url("~@/assets/Logo1.png");
  background-size: 100%;
  margin-bottom: 20px;
  font-size: 0;
}

.xtx-main-nav li {
  float: left;
  margin-right: 48px;
  line-height: 70px;
}

.xtx-main-nav li:last-child {
  margin-right: 84px;
}

/* 去除常见标签默认的 margin 和 padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
input {
  margin: 0;
  padding: 0;
}

/* 设置网页统一的字体大小、行高、字体系列相关属性 */
body {
  font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei",
    "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  color: #333;
  background: #f5f5f5;
}

/* 去除列表默认样式 */
ul,
ol {
  list-style: none;
}

/* 去除默认的倾斜效果 */
em,
i {
  font-style: normal;
}

/* 去除a标签默认下划线，并设置默认文字颜色 */
a {
  text-decoration: none;
  color: #333;
}

/* 设置img的垂直对齐方式为居中对齐，去除img默认下间隙 */
img {
  vertical-align: middle;
}

/* 去除input默认样式 */
input {
  border: none;
  outline: none;
  color: #333;
}

/* 左浮动 */
.fl {
  float: left;
}

/* 右浮动 */
.fr {
  float: right;
}

/* 双伪元素清除法 */
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}
.clearfix::after {
  clear: both;
}
</style>
